package com.dhcc.bpm.modules.bbs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Post
 * @Description 帖子信息表 实体类
 * @Author daina
 * @Date 2020/4/13 15:55
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Data
@TableName("bbs_post")
@ApiModel(value = "Post对象", description = "Post对象")
public class Post implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	* 主键
	*/
	@ApiModelProperty(value = "主键")	@JsonSerialize( using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
	@TableId( value = "id", type = IdType.ASSIGN_ID )
	private Long id;
	/**
	* 文章标题
	*/
		@ApiModelProperty(value = "文章标题")
		private String postTitle;
	/**
	* 文章内容
	*/
		@ApiModelProperty(value = "文章内容")
		private String postContent;
	/**
	* 作者
	*/
		@ApiModelProperty(value = "作者")	@JsonSerialize( using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
		private Long opcUserId;
	/**
	 * 审核人
	 */
	@ApiModelProperty(value = "审核人")	@JsonSerialize( using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
	private Long checkUser;
	/**
	* 创建时间
	*/
		@ApiModelProperty(value = "创建时间")
		private Date createTime;
	/**
	 * 审核时间
	 */
	@ApiModelProperty(value = "创建时间")
	private Date checkTime;
	/**
	* 标签
	*/
		@ApiModelProperty(value = "标签")
		private String tags;
	/**
	* 是否删除
	*/
	@ApiModelProperty(value = "是否删除")	@JsonSerialize( using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
		private Integer isDeleted;
	/**
	* 状态
	*/

		@ApiModelProperty(value = "状态")	@JsonSerialize( using = ToStringSerializer.class, nullsUsing = NullSerializer.class)

		private Integer status;
	/**
	* 浏览量
	*/
		@ApiModelProperty(value = "浏览量")	@JsonSerialize( using = ToStringSerializer.class, nullsUsing = NullSerializer.class)

		private Integer viewNum;
	/**
	* 专题
	*/
		@ApiModelProperty(value = "专题")	@JsonSerialize( using = ToStringSerializer.class, nullsUsing = NullSerializer.class)

		private Long bbsTopicId;
	/**
	* 文章简介
	*/
		@ApiModelProperty(value = "文章简介")
		private String spare1;
	/**
	* 文章审核状态
	*/
		@ApiModelProperty(value = "文章审核状态")
		private String spare2;

}
